﻿{extend name="common/base" /}

{block name="title"}角色管理 - 管理员管理{/block}
{block name="content"}
<div class="Hui-admin-article">
    <nav class="breadcrumb" style="background-color:#fff;padding: 0 24px">
        首页
        <span class="c-gray en">/</span>
        管理员管理
        <span class="c-gray en">/</span>
        角色列表
    </nav>
    <article class="Hui-admin-content clearfix">
        <div class="panel">
            <div class="panel-body">
            <div class="clearfix">
                <span class="f-l">
                    <!--<a href="javascript:;" onclick="role_del_all()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>-->
                    <a class="btn btn-primary radius" href="javascript:;" onclick="role_add('添加角色')"><i class="Hui-iconfont">&#xe600;</i> 添加角色</a>
                </span>
                <span class="f-r">共有数据：<strong>{$count}</strong> 条</span>
            </div>
            <div class="mt-20 clearfix">
                <table class="table table-border table-bordered table-hover table-bg">
                    <thead>
                        <tr>
                            <th scope="col" colspan="6">角色管理</th>
                        </tr>
                        <tr class="text-c">
                            <th width="25"><input type="checkbox" value="" name=""></th>
                            <th width="40">ID</th>
                            <th width="200">角色名</th>
                            <th width="300">描述</th>
                            <th width="70">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach name="list" key="k" item="v"}
                            <tr class="text-c">
                                <td><input name="list_box" type="checkbox" value="{$v.id}"></td>
                                <td>{$k+1}</td>
                                <td>{$v.role_name}</td>
                                <td>{$v.role_summary}</td>
                                <td class="td-manage">
                                    <a title="编辑" href="javascript:;" onclick="role_edit('管理员编辑',{$v.id},'900','600')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> 
                                    <a title="删除" href="javascript:;" onclick="role_del(this,{$v.id})" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
                                </td>
                            </tr>
                            {/foreach}
                    </tbody>
                </table>
                {$page|raw}
            </div>
        </div>
    </article>
    
</div>
<input name="add" type="hidden" value="{:url('role/add')}">
<input name="edit" type="hidden" value="{:url('role/edit')}">
<input name="del" type="hidden" value="{:url('role/del')}">
{/block}

{block name="js"}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/datatables/1.10.15/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__LIB__/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="__JS__/main.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
{/block}

